package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Insurance;
import cn.wolfcode.crm.domain.Product;
import cn.wolfcode.crm.query.QueryObject;
import cn.wolfcode.crm.util.PageResult;

public interface IInsuranceService {
    PageResult query(QueryObject qo);

    void saveOrUpdate(Insurance insurance);

    void deleteByPrimaryKey(Long id);

    void submitAudit(Long id);

    void returnApplication(Long id);

    void passApplication(Long id);

    Product getProductById(Long id);

    void payInsurance(Insurance insurance);

    Insurance getByIdAndState(Long id, int state);
}
